<?xml version="1.0"?>
<xsl:stylesheet version="1.0" 
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
                xmlns:ef="http://www.enginframe.com/2000/EnginFrame"> 

<!--
 * Copyright (c) 2009, NICE s.r.l.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice,
 *    this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. Neither the name of NICE s.r.l. nor the names of its contributors may
 *    be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->

  <xsl:output
    encoding="iso-8859-1"
    method="html"
    media-type="text/html"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    omit-xml-declaration="yes"
  />


  <!-- System stylesheets inclusions -->
  <xsl:include href="$(EF_ROOT)/lib/xsl/com.enginframe.system.xsl" />
  <xsl:include href="$(EF_ROOT)/lib/xsl/com.enginframe.multi.xsl" />

  <!-- General layout templates inclusion -->
  <xsl:include href="$(EF_ROOT)/plugins/demo/WEBAPP/standard/layout_templates.xsl" />

  <!-- Custom parameters -->
  <xsl:variable name="img">/<xsl:value-of select="$_root_context"/>/admin/images</xsl:variable>
  <xsl:variable name="css">/<xsl:value-of select="$_root_context"/>/admin/css</xsl:variable>

  <xsl:variable name="dtree_enabled">1</xsl:variable>
  <xsl:variable name="file_actions">1</xsl:variable>
  <xsl:variable name="upload_file">1</xsl:variable>
  <xsl:variable name="streaming_download">1</xsl:variable>
  <xsl:variable name="ef_ajax_enabled">1</xsl:variable>

  <!-- root template match -->
  <xsl:template match="/" mode="html">
    <html>
      <head>
        <xsl:call-template name="header_rendering"/>
      </head>

      <body onLoad="preloadImages('{$img}/gray_blue_tab_h_first.jpg','{$img}/gray_blue_tab_h.jpg','{$img}/gray_yellow_tab_h.jpg','{$img}/gray_green_tab_h.jpg', '{$img}/gray_green_tab_h_last.jpg', '{$img}/gray_red_tab_h.jpg' )">
        <xsl:call-template name="banner_rendering"/>
        <xsl:call-template name="topmenu_rendering"/>
        <xsl:call-template name="contents_rendering"/>
        <xsl:call-template name="footer_rendering"/>
      </body>

    </html>
  </xsl:template>

</xsl:stylesheet>
